#include "text_widget.h"

TextWidget::TextWidget(Area * parent) :
	QTextEdit (parent), _parent(parent)
{
}

TextWidget::~TextWidget()
{
}

void TextWidget::mouseReleaseEvent ( QMouseEvent * )
{
    _parent->emitDeselectOtherAreas();
    _parent->select();
    setFocus();
}
